﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 计科2111林开心06
{
    public partial class _3_4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            StruInfoDataContext stu = new StruInfoDataContext();
            var st = from r in stu.Studnet
                         where r.id == TextBox1.Text
                         select r;
            GridView1.DataSource = st;
            GridView1.DataBind();

                      
        }
    }
}